<?php

class Conect
{
	var $IPservidor="localhost";
	var $Usuario="root";
	var $Password="root";
	var $BaseD="joveneshoy";
//	var $hLink;
	// var $CommandText;
	
	
function conectar()
{
	//if(!($con = mysql_connect("localhost","jovenes_amar","aMaRHOY12")))
	if(!($con = mysql_connect($this->IPAddress,$this->Usuario,$this->Password)))
		{
			echo "Error de conexion a la Base de Datos";
			exit();
		}
//	if (!mysql_select_db("jovenes_amar",$con))
if (!mysql_select_db($this->BaseD,$con))
		{
			echo "Error al seleccionar la base de datos";
			exit();
		} 
return true;
mysql_close($con);
 }
 
 
 
}
?>